package cn.xzc.job.cocurrent;

/**
 * 将原始runnable包装为一个新的Runnable
 *
 * @author xzc
 * 当前时间 2024-02-12 21:30:00
 */
@FunctionalInterface
public interface RunnableDecorator {
    /**
     * 包装Runnable
     *
     * @param runnable 原始的Runnable
     * @return 包装后的Runnable
     */
    Runnable decorate(Runnable runnable);
}